import request from '@/utils/request'

// 查询客户基本信息列表
export function getTaskList(query) {
    return request({
        url: '/lims/sampleGet/taskList',
        method: 'get',
        params: query
    })
}

// 查询客户基本信息列表
export function getSelectSampleList(query) {
    return request({
        url: '/lims/sampleGet/sampleJcxmList',
        method: 'get',
        params: query
    })
}

// 提交选样
export function addSelectSample(data) {
    return request({
        url: '/lims/sampleGet',
        method: 'post',
        data: data
    })
}

// 提交取消选样
export function removeSelectSample(data) {
    return request({
        url: '/lims/sampleGet/remove',
        method: 'post',
        data: data
    })
}

// 清空全部选样
export function removeAllSelectSample(getId) {
    return request({
        url: '/lims/sampleGet/removeAll/' + getId,
        method: 'post',
    })
}

// 清空全部选样
export function defineSelectSample(getId) {
    return request({
        url: '/lims/sampleGet/createTask/' + getId,
        method: 'post',
    })
}

// 查询客户基本信息列表
export function getSampleJcxmCount(query) {
    return request({
        url: '/lims/sampleGet/sampleJcxmCount',
        method: 'get',
        params: query
    })
}

// 通过myId去查getId
export function getTaskId(myId) {
    return request({
        url: '/lims/myTask/' + myId,
        method: 'get',
    })
}

export function sampleToLab(myId) {
    return request({
        url: '/lims/sampleGet/toLab/' + myId,
        method: 'post',
    })
}



